package com.zykj.spb.study.controller;

import com.zykj.spb.study.repsubmit.LocalLock;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhoulj(周利军) [1217102780@qq.com]
 * @Title: RepSubmitController
 * @Project: ${MODEL_NAME}
 * @Module ID:   <(模块)类编号，可以引用系统设计中的类编号>
 * @Comments: <对此类的描述，可以引用系统设计中的描述>
 * @JDK version used:      <JDK1.8> 00
 * @since 2018/12/19-16:00
 */
@RestController
@RequestMapping("rep")

public class RepSubmitController {

    @RequestMapping
    @LocalLock(key = "book:arg[0]")
    public String index(@RequestParam String token) {
        return "token:" + token;
    }
}
